home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UTIL / SYS / SETPREFIX / ReadMe next >
Text File  |  1992-03-30  |  1KB  |  31 lines

  1. SetPrefix (C) Adam Goodfellow 1992 (Arcade User #254 - Elatar)
  2.  
  3. Sets an OS variable to the directory part of an object name. It is
  4. intelligent in that if the object is a directory anyway, the whole path name
  5. will be returned.
  6.  
  7. Usage: SetPrefix <varname> <objname>
  8.  
  9. Example:
  10. SetPrefix temp$dir adfs::harddisc4.$.temp.filename
  11. temp$dir will be set to "adfs::harddisc4.$.temp"
  12.  
  13. This is most useful for use with the DDE *Prefix command which sets the
  14. current directory local to a particular task. For example:
  15.  
  16. SetPrefix Prefix$Dir %*0
  17. NoError FreeRMA
  18. Prefix <Prefix$Dir>
  19. taskwindow "AMU -f%*0" -wimpslot 1280k -quit
  20.  
  21. The above is from a desktop front end I did for AMU. Basically the whole
  22. front end consists of the above commands in an obeyfile, with a runtype
  23. alias setup to run the above obeyfile when I double click on my make files.
  24.  
  25. On entry to the obey file %*0 is the name of the obey file I double-clicked
  26. on. The rest merely strips the leafname from %*0 and sets the result as the
  27. current directory for the duration of this task, allowing AMU to work in its
  28. normal absolute directory context.
  29.  
  30.  
  31.